package com.test;


//import org.slf4j.Logger;  
//import org.slf4j.LoggerFactory;  
  
import java.io.IOException;

import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.HttpMethod;
import org.apache.commons.httpclient.methods.GetMethod;



public class utils {
	
	public static void  main(String args[]) throws Exception{
		
		int i = 10000;
		
		while(i > 0){
			HttpClient client = new HttpClient();   
			
			HttpMethod method = new GetMethod("https://kyfw.12306.cn/otn/lcxxcx/query?purpose_codes=ADULT&queryDate=2014-01-27&from_station=VNP&to_station=ZZF");
			
			client.executeMethod(method);
			
			System.out.println(method.getStatusLine());
			
			i = i-1;
		}
	}
}